package com.bestcem.xm.qdes.controller.param;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.bestcem.xm.common.core.domain.base.UserBaseInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author guitao.lu
 * @version V1.0
 * @date 2022/8/1
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ProjectTitleParam extends UserBaseInfo {
    @NotBlank(message = "title is required")
    @Length(max = 30, message = "title is unqualified")
    @Pattern(regexp = RegTypes.TITLE, message = "title is unqualified")
    @ApiModelProperty(value = "项目名称")
    private String title;
}
